import 'package:aio/aio.dart';
import 'package:app/src/http/url.dart';

//合同特殊设置审核
class OemAuditing extends BaseBean {
  //合同特殊设置名称系统编号
  String? OdId = "";

  //模版名称
  String? TemplateName = "";

  //模板ID
  String? TemplateId = "";

  //模板预览（模板html源码）
  String? TemplatePreview = "";

  //销售公司（主）
  String? CompanyName = "";

  //销售公司（副）
  String? CompanyNameEn = "";

  //公司Logo
  String? Logo = "";

  ///获取logo网络地址
  String? getLogoUrl(){
    return  Url.getFileUrl(Logo);
  }

  //客户名称
  String? CustomerName = "";

  //客户地址
  String? CustomerAddress = "";

  //项目名称
  String? ProjectName = "";

  //电话
  String? Tel = "";

  //公司地址
  String? CompanyAddress = "";

  //公司地址（英）
  String? CompanyAddressEn = "";

  //传真
  String? Fax = "";

  //邮编
  String? PostCode = "";

  //网址
  String? WebSite = "";

  //执行标准
  String? ExecutiveStandard = "";

  //开户行
  String? Bank = "";

  //开户行账号
  String? BankNo = "";

  //公司税号
  String? TaxId = "";

  @override
  fromJson(Map<String, dynamic> json) {
    // TODO: implement fromJson
    OdId = json['OdId']?.toString() ?? "";
    TemplateName = json['TemplateName']?.toString() ?? "";
    TemplateId = json['TemplateId']?.toString() ?? "";
    TemplatePreview = json['TemplatePreview']?.toString() ?? "";
    CompanyName = json['CompanyName']?.toString() ?? "";
    CompanyNameEn = json['CompanyNameEn']?.toString() ?? "";
    Logo = json['Logo']?.toString() ?? "";
    CustomerName = json['CustomerName']?.toString() ?? "";
    CustomerAddress = json['CustomerAddress']?.toString() ?? "";
    ProjectName = json['ProjectName']?.toString() ?? "";
    Tel = json['Tel']?.toString() ?? "";
    CompanyAddress = json['CompanyAddress']?.toString() ?? "";
    CompanyAddressEn = json['CompanyAddressEn']?.toString() ?? "";
    Fax = json['Fax']?.toString() ?? "";
    PostCode = json['PostCode']?.toString() ?? "";
    WebSite = json['WebSite']?.toString() ?? "";
    ExecutiveStandard = json['ExecutiveStandard']?.toString() ?? "";
    Bank = json['Bank']?.toString() ?? "";
    BankNo = json['BankNo']?.toString() ?? "";
    TaxId = json['TaxId']?.toString() ?? "";
    // json?.forEach((key, value) {
    //   print("key:$key\tvalue:\t$value");
    // });
  }

  @override
  instance() {
    // TODO: implement instance
    return OemAuditing();
  }

  @override
  Map<String, dynamic> toJson() {
    // TODO: implement toJson
    var map = <String, dynamic>{};
    map["OdId"] = OdId;
    map["TemplateName"] = TemplateName;
    map["TemplateId"] = TemplateId;
    map["TemplatePreview"] = TemplatePreview;
    map["CompanyName"] = CompanyName;
    map["CompanyNameEn"] = CompanyNameEn;
    map["Logo"] = Logo;
    map["CustomerName"] = CustomerName;
    map["CustomerAddress"] = CustomerAddress;
    map["ProjectName"] = ProjectName;
    map["Tel"] = Tel;
    map["CompanyAddress"] = CompanyAddress;
    map["CompanyAddressEn"] = CompanyAddressEn;
    map["Fax"] = Fax;
    map["PostCode"] = PostCode;
    map["WebSite"] = WebSite;
    map["ExecutiveStandard"] = ExecutiveStandard;
    map["Bank"] = Bank;
    map["BankNo"] = BankNo;
    map["TaxId"] = TaxId;
    return map;
  }
}
